package com.alipay.common;

import java.io.Serializable;

/**
 * 此类对页面ajax请求响应内容进行封装
 * @author xumiao
 *
 */
public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8675783824101316138L;

	public enum PayStatus{
		TRANS_SUCCESS("交易处理成功"),
		REQUEST_SUCCESS("交易请求成功"),
		FAILD("处理失败");
		
		private String desc;
		PayStatus(String desc){
			this.desc = desc;
		}
		public String getDesc() {
			return desc;
		}
		
	}
	public PayStatus status;
	
	/**
	 * 提示信息
	 */
	public String msg = "";

	public Message(PayStatus status, String msg) {
		super();
		this.status = status;
		this.msg = msg;
	}

	public PayStatus getStatus() {
		return status;
	}

	public void setStatus(PayStatus status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "Message [status=" + status.desc + ", msg=" + msg + "]";
	}
}
